package ul.elab

import java.{io}
import ul.iobj.{IAttr, IObj}
import ul.gettext.{GetText}

// create configuration
object Config extends IObj {
    
    val projectName = "ELab"
    val configFileExt = ".conf";
    val configFile = "." + io.File.separator + projectName + configFileExt

    var tran: GetText = null
    var tr: (String)=>String = null
    
    attrsAdd( List(
        new IAttr( "winX", "", "", 0 )
        ,new IAttr( "winY", "", "", 0 )
        ,new IAttr( "winW", "", "", 600 )
        ,new IAttr( "winH", "", "", 500 )

        ,new IAttr( "lang", "", "", "en" )

        ,new IAttr( "tabIndex", "", "", 0 )

        ,new IAttr( "sourceMixer", "", "", "" )
        ,new IAttr( "sourceLine", "", "", "" )
        ,new IAttr( "sourceFreq", "", "", 48000 )
        
        ,new IAttr( "genWaveform", "", "", 0 )
        ,new IAttr( "genFreq", "", "", 1000.0 )
        ,new IAttr( "genAmplitude", "", "", 100.0 )
    ))
    
}

